Release 10.1A: OpenEdge Development:
Web Services


DECIMAL

Table D–5 describes the supported castings in each 4GL parameter mode (INPUT and OUTPUT) between the 4GL DECIMAL type and XML Schema.

Table D–5: 4GL data type cast—DECIMAL
For this XML Schema type...
In this 4GL parameter mode...
OpenEdge...
string  
normalizedString 
INPUT 
Serializes the 4GL parameter into the SOAP request message according to the XML Schema serialization rules.
OUTPUT 
De-serializes the string value from the SOAP response message into the 4GL parameter as if the 4GL DECIMAL( ) function was called on the string.
boolean 
INPUT 
Serializes a 4GL DECIMAL value of 0 to false and all other values for the 4GL parameter to true.
OUTPUT 
De-serializes a value of false to a 4GL DECIMAL value of 0, and de-serializes a value of true to a DECIMAL value of 1.
decimal 
INPUT 
Serializes the 4GL parameter into the SOAP request message according to the XML Schema serialization rules.
OUTPUT 
De-serializes the XML Schema value into the 4GL parameter according to the XML Schema serialization rules. If the XML Schema decimal value overflows the 4GL DECIMAL, OpenEdge raises a run-time error.
float 
double 
INPUT 
Serializes the 4GL DECIMAL value according to XML Schema serialization rules. Some of the least significant digits might be lost.
OUTPUT 
De-serializes the XML Schema value to the equivalent 4GL DECIMAL value. If the value is outside the range of the 4GL DECIMAL, OpenEdge raises a run-time error.
integer 
nonPositiveInteger 
negativeInteger 
long 
int 
short 
byte 
nonNegativeInteger 
unsignedLong 
unsignedInt 
unsignedShort 
unsignedByte 
positiveInteger 
INPUT 
Rounds the 4GL DECIMAL value to an integer and serializes the result based on the serialization rules for the XML Schema type. Data might be lost. If the DECIMAL value is outside the valid range of the XML Schema type, OpenEdge raises a run-time error.
OUTPUT 
De-serializes the XML Schema value into the 4GL parameter as if the 4GL DECIMAL( ) function was called on the value. If the value in the SOAP response message is outside the range of the DECIMAL type, OpenEdge raises a run-time error.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095